{literal}
<script type="text/javascript">
$(document).ready(function(){
	$('#listTemplatesTable tr:even').addClass('alt');
});
</script>
{/literal}

<!-- Table for list of templates -->
<div id='templateList'>
	<table id='listTemplatesTable' cellspacing=0 cellpadding=0 class='grid' style='width: 100%'>
		<thead>
			<tr>
				<th style='width: 30%'>{translate}Prescription template name{/translate}</th>
				<th style='width: 40%'>{translate}Description{/translate}</th>
				<th style='width: 15%'>{translate}Created date{/translate}</th>
				<th style='width: 15%'>{translate}Last modified{/translate}</th>
			</tr>
		</thead>
		<tbody>
			{if $templates eq false} 
				<tr><td colspan="4">{translate}There is not any templates{/translate}</td></tr>
			{else}
				{foreach from=$templates item=item}
					<tr>
						<td><a href="javascript:editTemplate({$item.template_id})">{$item.template_name}</a></td>
						<td>{$item.note}</td>
						<td>{$item.date}</td>
						<td>{$item.modified}</td>
					</tr>
				{/foreach} 				
			{/if}
		</tbody>
	</table>
</div>
